Fix PowerShell here-string parser error in vendor.yml#3087
Merged
Conversation
Replace indented here-strings inside if/else blocks with simple string literals. PowerShell requires the "@" terminator to be at column 0 in the script; when inside an indented block the YAML base-indent stripping left 2 leading spaces, causing the parser error "White space is not allowed before the string terminator".
Copilot created this pull request from a session on behalf of
DRSDavidSoft
June 14, 2026 11:40
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a PowerShell parsing failure in the Summary - Update check results step by eliminating indented here-strings whose terminators were not at column 0 after YAML indentation was applied.
Changes:
- Replaced two PowerShell here-strings inside an
if/elseblock with equivalent double-quoted strings using`nfor newlines. - Preserved the existing summary formatting behavior while preventing
ParserError: White space is not allowed before the string terminator.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PowerShell requires the
"@here-string terminator to be at column 0. Inside theif/elseblock inSummary - Update check results, the terminators were indented 10 spaces in YAML — but therun: |block only strips 8 spaces of base indentation, leaving 2 leading spaces in the generated script and triggering:Changes
vendor.yml— Replace two indented here-strings (insideif/else) with equivalent double-quoted strings using`nfor newlines: